package com.example.fengjl.ndkdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;

import com.example.fengjl.ndkdemo.calc.Calc;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = (TextView) findViewById(R.id.sample_text);
        int m = 10, n = 2;
        Log.d(TAG, "add" + Calc.calcAdd(m,n));
        Log.d(TAG, "sub" + Calc.calcSub(m,n));
        Log.d(TAG, "mult" + Calc.calcMult(m,n));
        Log.d(TAG, "dvd" + Calc.calcDivid(m,n));

        Log.d(TAG,Thread.currentThread().getName());
    }


}
